package com.weixing.mall.provider.api.service;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.provider.api.fallback.AccessLogServiceFallback;
import com.weixing.mall.provider.api.fallback.SysUserServiceFallback;
import com.weixing.mall.provider.api.model.dto.AccessLogDto;
import com.weixing.mall.provider.api.model.dto.LoginLogDto;
import com.weixing.mall.provider.api.model.dto.UserUpdateDto;
import com.weixing.mall.provider.api.model.vo.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.ribbon.FeignRibbonClientAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author wx
 * @Date 2019/12/13 10:26
 * @Version 1.0
 */
@FeignClient(value = "mall-provider-cms", configuration = FeignRibbonClientAutoConfiguration.class, fallback = AccessLogServiceFallback.class)
public interface AccessLogRpcService {
    @PostMapping(value = "/api/log/saveAccessLog")
    Result<KefuVo> saveAccessLog(@RequestBody AccessLogDto accessLog);

}
